<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>商城页面</title>
    <link rel="stylesheet" href="/libs/bootstrap/bootstrap.min.css">
    <link rel="stylesheet" href="/css/shop.css">
    <script src='/libs/jquery/jquery-3.2.1.js'></script>
    <script src='/libs/bootstrap/bootstrap.min.js'></script>
</head>

<body>
    <header></header>
    <section>
        <div class="hot" id="pad">
            <script type="text/html" id="pad-template">
                        <div class="top-head">
                                {{title}}
                        </div>
                        <div class="top-body">
                            {{each hot list}}
                            <div class="lists">
                                <a href="detail.html?id={{list.id}}" target="_blank">
                                    <img src="{{list.img}}" alt="">
                                </a>
                                <div class="info">
                                    <p>{{list.name}}</p>
                                    <div></div>
                                    <p>￥{{list.price}}</p>
                                </div>
                            </div>
                            {{/each}}

                        </div>
                    </script>
        </div>

        <div class="window" id="window">
            <script type="text/html" id="window-template">
                <div class="top-head">
                    {{title}}
                </div>
                <div class="top-body">
                    <div class="left">
                            <a href="detail.html?id={{bigimage.id}}" target="_blank">
                                    <img src="{{bigimage.image}}" alt="">
                    </div>
                    {{each image list}}
                    <div class="lists">
                        <a href="detail.html?id={{list.id}}" target="_blank">
                            <img src="{{list.image}}" alt="">
                        </a>
                        <div class="info">
                            <p>{{list.name}}</p>
                            <div></div>
                            <p>￥{{list.price}}</p>
                        </div>
                    </div>
                    {{/each}}

                </div>
            </script>
        </div>

        <div class="window" id="android">
            <script type="text/html" id="android-template">
                    <div class="top-head">
                        {{title}}
                    </div>
                    <div class="top-body">
                        <div class="left">
                                <a href="detail.html?id={{bigimage.id}}" target="_blank">
                                        <img src="{{bigimage.image}}" alt="">
                        </div>
                        {{each image list}}
                        <div class="lists">
                            <a href="detail.html?id={{list.id}}" target="_blank">
                                <img src="{{list.image}}" alt="">
                            </a>
                            <div class="info">
                                <p>{{list.name}}</p>
                                <div></div>
                                <p>￥{{list.price}}</p>
                            </div>
                        </div>
                        {{/each}}
    
                    </div>
                </script>
        </div>

        <div class="hot" id="other">
            <script type="text/html" id="other-template">
                            <div class="top-head">
                                    {{title}}
                            </div>
                            <div class="top-body">
                                {{each other list}}
                                <div class="lists">
                                    <a href="detail.html?id={{list.id}}" target="_blank">
                                        <img src="{{list.img}}" alt="">
                                    </a>
                                    <div class="info">
                                        <p>{{list.name}}</p>
                                        <div></div>
                                        <p>￥{{list.price}}</p>
                                    </div>
                                </div>
                                {{/each}}
    
                            </div>
                        </script>
        </div>
    </section>
    <div class="shopCart">
        <a href="/html/cart.html">购物车</a>
        <b id="shopNum">0</b>
    </div>

    <footer></footer>
</body>
<script src="/libs/requirejs/require.min.js" data-main="/js/shop"></script>

</html>